﻿Imports System.Windows.Forms

Public Class frmEditContact

    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

    Private Sub cmdBirthday_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdBirthday.Click
        Dim frm As New frmPopUpCalendar()
        frm.ShowDialog()

    End Sub

    Private Sub cmdAnniversary_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAnniversary.Click
        Dim frm As New frmPopUpCalendar()
        frm.ShowDialog()
        Me.ctlAnniversary.Text = frm.DateReturn()
        frm.Dispose()

    End Sub
End Class
